Remove extra pass over track and route queues.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 26 Jul 2005 12:32:04 +0000 (12:32 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 26 Jul 2005 12:32:04 +0000 (12:32 +0000)
gpsbabel/dopfilt.c

index a4594684a29ed6f300495e42fbfe7eaa25093f41..7a767b5dc9475b40afbe44c2cffdb0b7fa6dfc4e 100644 (file)
@@ -76,10 +76,6 @@ void
 fix_process(void)
 {
        waypoint * waypointp;
-
-       int tc = track_count();
-       int rc = route_count();
-       
        queue *elem, *tmp;
        extern queue waypt_head;
        
@@ -111,12 +107,10 @@ fix_process(void)
        }
        
        // Filter tracks
-       if (tc > 0)
-           track_disp_all(fix_process_track, NULL, NULL);
+       track_disp_all(fix_process_track, NULL, NULL);
        
        // And routes
-       if (rc > 0)
-           route_disp_all(fix_process_track, NULL, NULL);
+       route_disp_all(fix_process_track, NULL, NULL);
        
 }